Skip to content

docs: document promptContext feature for injecting file context into agent prompts#141

Merged
ben-rogerson merged 3 commits into
mainfrom
docs/prompt-context-feature-undocumented
May 10, 2026
Merged

docs: document promptContext feature for injecting file context into agent prompts#141
ben-rogerson merged 3 commits into
mainfrom
docs/prompt-context-feature-undocumented

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

The promptContext array on defineAgent options allows agents to declare files that should be automatically injected into their prompts as XML blocks. Documented in both packages/core/README.md and packages/templates/README.md with examples of filepath resolution, head/tail line limits, and the optional flag for graceful missing-file handling.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

…agent prompts

The promptContext array on defineAgent options allows agents to declare files that should be automatically injected into their prompts as <context file=...> XML blocks. Documented in both packages/core/README.md and packages/templates/README.md with examples of filepath resolution, head/tail line limits, and the optional flag for graceful missing-file handling.
@ben-rogerson ben-rogerson enabled auto-merge (squash) May 10, 2026 00:07
@ben-rogerson ben-rogerson merged commit 74679ef into main May 10, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the docs/prompt-context-feature-undocumented branch May 10, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant